<template>
  <div id="app">
    <header>
      <router-view name="header" />
    </header>
    <main>
      <router-view />
    </main>
    <footer>
      <router-view name="footer" />
    </footer>
  </div>
</template>

<script>
// import TabBar from '@/components/tab-bar'
export default {
  name: 'App',
  components: {
    // TabBar
  },
  created() {
    console.log(this)
  },
  watch: {
    $route(newRoute) {
      this.title = newRoute.meta.title
    }
  }
}
</script>

<style lang="scss">
   #app {
    height: 100%;
    display: flex;
    flex-direction: column;
    header {
      height: 50px;
      background: #bfa;
    }
    main {
      flex: 1;
      overflow-x:hidden ;
    }
  }
</style>
